package com.dhl.rabbitmq.utils;

/**
 * @author danghailiang
 */
public class RabbitConstant {
    /**
     * 死信交换标识
     */
    public static final String X_DEAD_LETTER_EXCHANGE = "x-dead-letter-exchange";
    /**
     * 死信的路由标识
     */
    public static final String X_DEAD_LETTER_ROUTING_KEY = "x-dead-letter-routing-key";
    /**
     * 设置队列存储消息最大长度，超过该长度转发给死信队列
     */
    public static final String X_MAX_LENGTH = "x-max-length";
    /**
     * 过期时间
     * 单位毫秒
     */
    public static final String X_MESSAGE_TTL = "x-message-ttl";
    /**
     * 设置对列优先级
     */
    public static final String X_MAX_PRIORITY = "x-max-priority";



    /**
     * 死信对列路由key
     */
    public static final String DEAD_ROUTING_KEY = "lisa";
    /**
     * 普通对列路由key
     */
    public static final String NORMAL_ROUTING_KEY = "zhangsan";
}
